package com.example.demo.service;

import com.example.demo.entity.Book;
import com.example.demo.entity.BookVO;
import com.example.demo.entity.Jieyue;
import com.example.demo.mapper.JieyueMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JieyueImpl implements JieyueService {
    @Autowired
    JieyueMapper jieyueMapper;
    @Override
    public int jieyue(Book book) {
        return jieyueMapper.jieyue(book);
    }

    @Override
    public List<Book> jieyuepage(BookVO bookVO) {
        return jieyueMapper.jieyuepage(bookVO);
    }

    @Override
    public Integer jieyuecount(BookVO bookVO) {
        return jieyueMapper.jieyuecount(bookVO);
    }

    @Override
    public BookVO xiangqing(Integer id) {
        return jieyueMapper.xiangqing(id);
    }

    @Override
    public Integer addjilu(Jieyue jieyue) {
        return jieyueMapper.addjilu(jieyue);
    }

    @Override
    public int huanshu(Book book) {
        return jieyueMapper.huanshu(book);
    }


    @Override
    public int updatejilu(Jieyue jieyue) {
        return jieyueMapper.updatejilu(jieyue);
    }

    @Override
    public List<BookVO> geren(BookVO bookVO) {
        return jieyueMapper.geren(bookVO);
    }


}
